import request from '@/utils/request'
import Qs from 'qs'


/**
 * 查询权限实体类型
 */
export function queryEntityTypes() {
  return request({
    url: '/sys/auth/entity/queryEntityTypes',
    method: 'get',
  })
}

/**
 * 通过权限实体类型获取权限实体
 */
export function queryByTypeCode(data) {
  return request({
    url: '/sys/auth/entity/queryByTypeCode',
    method: 'get',
    params: {
      typeCode: data
    }
  })
}

/**
 * 通过类型编码获取权限实体id
 */
export function queryEntityIdsByTypeCode(data) {
  return request({
    url: '/sys/auth/entity/queryEntityIdsByTypeCode',
    method: 'get',
    params: {
      typeCode: data
    }
  })
}


